package com.cxs.controller;

import com.cxs.service.ClassesService;
import cxs.utils.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Author:cxs
 * @Date:2021/10/11  20:48
 * @Version 1.0
 * @Motto:放下杂念,只为迎接明天更好的自己
 * */
@RestController
@RequestMapping("/classes")
@CrossOrigin
public class ClassesController {
    @Autowired
    private ClassesService classesService;

    @GetMapping("/list")
    public Result list(){
        return classesService.list();
    }
}
